In-Reply-To: Your message <QCFBCA11@ouradnik> of 30 Nov 93 22:33:55 GMT
Content-Type: TEXT/plain; charset=US-ASCII
Newsgroups: fa.think-c
Lines: 43
Date: 1 Dec 93 04:10:03 GMT
Mike Ouradnik on miscreant popup menus:
> What I found by chance was that I had to check the
> PRELOAD box
Resources are not always read into memory, but frequently
used ones and ones used at startup should be, so the
preload attribute is available for all resources.
Not only should all menus be preloaded, they should also
_never_ be marked as purgeable, as the menu manager doesnt
wanna take the trouble to deal with disk I/O while fielding
a menu hit.
Why not? Remember that the screen behind the menu is
cached so that it can be restored by the menu mangler
when the menu pops up, if I/O were done, and a problem
arose, then an alert window would have to be displayed,
which is real trouble for the 128k original Mac.
Probably could be handled today, but not under low
memory situations, so KISS is the basic answer.
> This was not mentioned anywhere in the chapter
Well it sure is mentioned in Inside Mac, which you really
should be reading along with any third party book.
> I don't understand why it is required here yet not for
> the other menus.
Menus set up by the menu manager get detached, and are thus
not resource handles anymore, not sure if you did things
in a way that allowed these popups to still be resource
handles, but if you some how managed to avoid detaching
them and they got purged then that would explain a lot
of what you saw.
Bone up on Resources in general, Menus in particular, but
use the real IM (or NIM), not the Primer. Couldnt hurt
to sneak a peek at the tech notes as well.
--
dana s emery <de19@umail.umd.edu>
Path: ucivax!gateway
From: Richard.Wolf@UICVM.UIC.EDU ("Richard K. Wolf")
Subject: MacTCP examples ... ???
X-Sender: U42641@uicvm.uic.edu
Message-ID: <9312011022.aa13599@q2.ics.uci.edu>
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0
Newsgroups: fa.think-c
Lines: 17
Date: 1 Dec 93 18:22:19 GMT
Hey everyone,
Can anyone point me in the direction of some simple MacTCP source? I know
fancy source exists for things like tn3270, etc., but I don't need anything
that complex. I just want something with no frills, but which shows the
proper ways to open and use TCP streams. Something really small and
digestable would be ideal.
Thanks in advance!
Richard K. Wolf
Richard.Wolf@uic.edu
Small Systems Group
Computer Center
University of Illinois at Chicago
Path: ucivax!gateway
From: ASDVORAK@ccit.arizona.edu
Subject: Request Info
Message-ID: <01H5YOJT9S6Q8Y5NC8@CCIT.ARIZONA.EDU>
Content-transfer-encoding: 7BIT
MIME-version: 1.0
Newsgroups: fa.think-c
X-VMS-To: IN%"Think-C@ics.uci.edu"
Lines: 4
Date: 1 Dec 93 18:32:45 GMT
X-Envelope-to: Think-C@ics.uci.edu
I just purchased Think C++ 6.0 and would like to know if there is a user group, someone to whom I can write to with questions, ftp sites with C source code written for Think C, or any other information you can give me. Thank you.
Has anybody been receiving weird and wonderful bus errors when copding with C++6.01? I've got programs that will comile just fine with MPW C++ (albeit slowly), but throw beautiful bus erros up on my screen with THINK...not impressed at all.
I hate to blame compilers, but after spending about 60 hours trying to track these down, I tihnk that THINK may have some serious problems. It always seems to bus error on a MOVE A0,(A0) and A0 is always some nice value like $7ffc0001....